package com.cs.peanut.base.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * Created by zack on 2018/3/14.
 */

public class GsonUtil {

    private static Gson _gson;
    public static Gson defaultGson() {
        if(_gson!=null) return _gson;
        _gson = new GsonBuilder()
                .setDateFormat("yyyy-MM-dd'T'hh:mm:ss")
                .create();
        return _gson;
    }
}
